home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
comm
/
mebbs
/
rfslog100.lha
/
RFSLog.Doc
< prev
Wrap
Text File
|
1995-09-23
|
5KB
|
120 lines
RFSLog
Version 1.00
by: Steve Robbins [M3014]
Distribution:
RFSLog is copyrighted and is distributed as freely distributable. You
may upload it to any BBS or service like Genie or Portal that you wish, it
may be distributed on disk as long as the charge for such a disk does not
exceed reasonable cost for the magnetic media and shipping/handling charges.
All distributions must be in original form. No warranties are implied or
expressed with regard to the total fitness or useability of RFSLog for any
particular purpose. All risks are that of the user.
What it is:
RFSLog is a program that allows you to backup all of your log files
automatically each night. Although this could be done easily with a
script, RFSLog comes with some extra capabilities. First off there are many
ways to rename the file once you back it up. This can be done in five
different ways: Delete the file, copy the file, name the file so it is
unique for a one week period, name the file so it is unique for a one
month period, or name the file so that it is unique for a one year period.
Also you have the option of automatically placing the backed up file in an
archive that is named for the current month.
Installation:
Copy RFSLog to your MEBBSNet:c directory and place RFSLog.cfg in your
MEBBSNet:ConfigFiles directory.
Running RFSLog:
You simply want to place the command "RFSLog" in a script that is
executed each night preferably before midnight. I run mine at 11:58 PM.
RFSLog will then copy the files to the designated directories with the
names extended by the date if you have configured it that way. Take care
to place RFSLog after any programs in your script that scan the log and
pull information out (for example: Usage by Larry Cloud). If you run it
after midnite then you just have to keep in mind that every file will have
info in it from the date previous to the one that is in the filename.
Configuration:
Each file that you want backed up will require five entries in the
configuration file in this manner:
; MEBBSNet Line 1
BBS:
bbs:backups/
MEBBSNet1.log
YEAR
NOARCHIVE
After the comment, the first line is for the path that the log file
currently resides in. This must end in a trailing slash or colon. The
second line is for the path that the backup file will go to. This also
must end in a trailing slash or colon. The third line is the name of the
log to be backed up. The fourth line is for the type of backup this will
be, these are explained below. The fifth line will either contain ARCHIVE
or NOARCHIVE. This designates whether or not you want the backup file
placed in an archive. Both lines 4 and 5 must be in all caps.
Five Types of backups:
1) Delete - Simply deletes the log file.
2) Single - This copies the file to the backup directory without
modifying the name.
3) Year - This copies the file to the backup directory and modifies the
name to give it a unique name for a one year period. The month and day
will be appended in numerical format. For instance if the current date is
May 19th and you are backing up your MEBBSNet1.log then the backup file
will be named MEBBSNet1.log.0519.
4) Month - This copies the file to the backup directory and modifies the
name to give it a unique name for a one month period. The day will be
appended in numerical format. For instance if the current date is
the 19th and you are backing up your MEBBSNet1.log then the backup file
will be named MEBBSNet1.log.19.
5) Day - This copies the file to the backup directory and modifies the
name to give it a unique name for a one week period. The day of the week
will be appended in text format. For instance if the current day is
Saturday and you are backing up your MEBBSNet1.log then the backup file
will be named MEBBSNet1.log.Saturday.
Assumptions:
- If you select SINGLE or DELETE then NOARCHIVE is automatically
assumed.
- If you select DELETE than the backup path is ignored.
- All five lines must have some entry in them even if they are not
used.
- Comments can be placed in the configuration file by putting a
semi-colon at the beginning of the line.
- Blank lines are allowed.
- After any file is backed up or deleted then it is replaced with a 0
byte file of the same name. This is due to some logs that aren't used if a
file doesn't already exist (Download.log, Call.log).
EMail: SRobbins@ix.netcom.com
Fido: 1:360/29
History
Version 1.00
- Initial release